package com.ufind.server.core.domain;

import com.ufind.server.core.repository.IUserRepository;
import com.ufind.server.facade.dto.UserDTO;

import javax.inject.Inject;
import javax.inject.Named;

@Named
public class User extends UserDTO {

    @Inject
    protected IUserRepository userRepository;

    public Long insert(User user) {
        return Long.parseLong(userRepository.insertSelective(user) + "");
    }
}